<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : counsel_car03.jsp
    Description : 시승 차량 조회
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>
                            
                            
                            <c:forEach var="car" items="${carList}" varStatus="status">
                                <div class="section">
                                <c:if test="${not empty car.carCd }">
                                    <div class="cell">
                                    <c:choose>
                                        <c:when test="${not empty car.vehlImageName}">
                                        <img src="/kr/file/imagePathView.do?nrFilNm=trcarimage/${car.vehlImageName}" alt="${car.carn} 이미지" class="car-thumb" />
                                        </c:when>
                                        <c:when test="${empty car.vehlImageName}">
                                        <img src="/kr/temp/@car_150x90.jpg" alt="차량 이미지" class="car-thumb" />
                                        </c:when>
                                    </c:choose>
                                        <input type="radio" class="check" name="carCdL" id="carCdL" value="${car.carCd }" onclick="getCalendar('${car.carCd}','${car.carSaleCd }','${car.strtYmd }','${car.fnhYmd }');choiceCar('${car.saleCtyHanNm}','${car.xrclCtyNm }','${car.vehlImageName}','${car.cprImgNm}','${car.cprCarn }');" />
                                        <p class="name-detail"><b>${car.carn }</b> ${car.xrclCtyNm } | 
                                                <c:if test="${not empty carList[j].carDtlInfo }">${carList[j].carDtlInfo }</c:if>
                                                <c:if test="${empty carList[j].carDtlInfo }">${carList[j].saleCtyHanNm}</c:if>                                         
                                        </p>
                                    </div>
                                    <div class="cell">
                                    <c:choose>
                                        <c:when test="${not empty car.cprImgNm}">
                                        <img src="/kr/file/imagePathView.do?nrFilNm=tda/${car.cprImgNm}" alt="${car.cprCarn} 이미지" class="car-thumb" />
                                        </c:when>
                                        <c:when test="${empty car.cprImgNm}">
                                        <img src="/kr/temp/@car_150x90.jpg" alt="차량 이미지" class="car-thumb" />
                                        </c:when>
                                    </c:choose>
                                        <p class="name-detail"><b>${car.cprCarn }</b></p>
                                    </div>
                                </c:if>
                                </div>
                            
                            </c:forEach>
                            <c:if test="${fn:length(carList) == 0 }">
                                <div class="section">
                                            시승 가능한 차량이 없습니다.
                                </div>
                            </c:if>
                                
                                

                            
